package dto;

public class ReceptDTO 
{
	int receptId;
	String receptNavn;
	double nomNetto;
	double tolerance;
	int raavareId;
	int raavarer = 1;

	public ReceptDTO(int receptId, String receptNavn, int raavareId, double nomNetto, double tolerance)	{
		this.receptId = receptId;
		this.receptNavn = receptNavn;
		this.nomNetto = nomNetto;
		this.tolerance = tolerance;
		this.raavareId = raavareId;
	}

	public int getReceptId() { return receptId; }
	public void setReceptId(int receptId) { this.receptId = receptId; }
	public int getRaavareId() { return raavareId; }
	public void setRaavareId(int raavareId) { this.raavareId = raavareId; }
	public String getReceptNavn() { return receptNavn; }
	public void setReceptNavn(String receptNavn) { this.receptNavn = receptNavn; }
	public double getNomNetto() { return nomNetto; }
	public void setNomNetto(double nomNetto) { this.nomNetto = nomNetto; }
	public double getTolerance() { return tolerance; }
	public void setTolerance(double tolerance) { this.tolerance = tolerance; }

	public void addRaavare() { raavarer++; }
	public int getRaavarer() { return raavarer; }

	public String toString() {
		return receptId + "\t" + receptNavn + "\t" + raavareId + "\t" + nomNetto + "\t" + tolerance; 
	}
}
